
using System;
using QdbUnit;
using QdbUnit.Extensions;
using Qdb.Internal;
using Qdb.Tests.Common.Internal;

namespace Qdb.Tests.Common.Internal
{
	public class SerializerTestCase : AbstractQdbTestCase
	{
		public static void Main(string[] args)
		{
			new SerializerTestCase().RunAll();
		}

		#if !SILVERLIGHT
		/// <exception cref="System.Exception"></exception>
		public virtual void TestExceptionMarshalling()
		{
			ReflectException e = new ReflectException(new ArgumentNullException());
			SerializedGraph marshalled = Serializer.Marshall(Stream().Container, e);
			Assert.IsTrue(marshalled.Length() > 0);
		}
		#endif // !SILVERLIGHT
	}
}
